mod segment01;
mod segment02;
mod segment03;
mod segment04;

fn multiply(first_number_str: &str, second_number_str: &str) -> i32 {
    // 我们试着用 `unwrap()` 把数字放出来。它会咬我们一口吗？
    let first_number = first_number_str.parse::<i32>().unwrap();
    let second_number = second_number_str.parse::<i32>().unwrap();
    first_number * second_number
}

pub fn practice() {
    let twenty = multiply("10", "2");
    println!("double is {}", twenty);

    // let tt = multiply("t", "2");
    // println!("double is {}", tt);

    println!("");
    segment01::practice();

    println!("");
    segment02::practice();

    println!("");
    segment03::practice();

    println!("");
    segment04::practice();
}
